using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace BaseData.Models.Mapping
{
    public class Web_Base_Exts_MetaMap : EntityTypeConfiguration<Web_Base_Exts_Meta>
    {
        public Web_Base_Exts_MetaMap()
        {
            // Primary Key
            this.HasKey(t => t.PkId);

            // Properties
            this.Property(t => t.Application_name)
                .IsFixedLength()
                .HasMaxLength(10);

            this.Property(t => t.Author)
                .IsFixedLength()
                .HasMaxLength(10);

            this.Property(t => t.Copyright)
                .IsFixedLength()
                .HasMaxLength(10);

            this.Property(t => t.Description)
                .IsFixedLength()
                .HasMaxLength(10);

            this.Property(t => t.Generator)
                .IsFixedLength()
                .HasMaxLength(10);

            this.Property(t => t.Keywords)
                .IsFixedLength()
                .HasMaxLength(10);

            this.Property(t => t.Msapplication_arguments)
                .IsFixedLength()
                .HasMaxLength(10);

            this.Property(t => t.Msapplication_badge)
                .IsFixedLength()
                .HasMaxLength(10);

            this.Property(t => t.Msapplication_id)
                .IsFixedLength()
                .HasMaxLength(10);

            this.Property(t => t.Msapplication_minversion)
                .IsFixedLength()
                .HasMaxLength(10);

            this.Property(t => t.Msapplication_navbutton_color)
                .IsFixedLength()
                .HasMaxLength(10);

            this.Property(t => t.Msapplication_optout)
                .IsFixedLength()
                .HasMaxLength(10);

            this.Property(t => t.Msapplication_packagefamilyname)
                .IsFixedLength()
                .HasMaxLength(10);

            this.Property(t => t.Msapplication_starturl)
                .IsFixedLength()
                .HasMaxLength(10);

            this.Property(t => t.Msapplication_tilecolor)
                .IsFixedLength()
                .HasMaxLength(10);

            this.Property(t => t.Msapplication_task)
                .IsFixedLength()
                .HasMaxLength(10);

            this.Property(t => t.Msapplication_task_separator)
                .IsFixedLength()
                .HasMaxLength(10);

            this.Property(t => t.Msapplication_tooltip)
                .IsFixedLength()
                .HasMaxLength(10);

            this.Property(t => t.Msapplication_tileimage)
                .IsFixedLength()
                .HasMaxLength(10);

            this.Property(t => t.Msapplication_window)
                .IsFixedLength()
                .HasMaxLength(10);

            this.Property(t => t.MSThemeCompatible)
                .IsFixedLength()
                .HasMaxLength(10);

            this.Property(t => t.MSSmartTagsPreventParsing)
                .IsFixedLength()
                .HasMaxLength(10);

            this.Property(t => t.Revisit_after)
                .IsFixedLength()
                .HasMaxLength(10);

            this.Property(t => t.Robots)
                .IsFixedLength()
                .HasMaxLength(10);

            this.Property(t => t.Viewport)
                .IsFixedLength()
                .HasMaxLength(10);

            // Table & Column Mappings
            this.ToTable("Web_Base_Exts_Meta");
            this.Property(t => t.PkId).HasColumnName("PkId");
            this.Property(t => t.NodeId).HasColumnName("NodeId");
            this.Property(t => t.InfoId).HasColumnName("InfoId");
            this.Property(t => t.Application_name).HasColumnName("Application-name");
            this.Property(t => t.Author).HasColumnName("Author");
            this.Property(t => t.Copyright).HasColumnName("Copyright");
            this.Property(t => t.Description).HasColumnName("Description");
            this.Property(t => t.Generator).HasColumnName("Generator");
            this.Property(t => t.Keywords).HasColumnName("Keywords");
            this.Property(t => t.Msapplication_arguments).HasColumnName("Msapplication-arguments");
            this.Property(t => t.Msapplication_badge).HasColumnName("Msapplication-badge");
            this.Property(t => t.Msapplication_id).HasColumnName("Msapplication-id");
            this.Property(t => t.Msapplication_minversion).HasColumnName("Msapplication-minversion");
            this.Property(t => t.Msapplication_navbutton_color).HasColumnName("Msapplication-navbutton-color");
            this.Property(t => t.Msapplication_optout).HasColumnName("Msapplication-optout");
            this.Property(t => t.Msapplication_packagefamilyname).HasColumnName("Msapplication-packagefamilyname");
            this.Property(t => t.Msapplication_starturl).HasColumnName("Msapplication-starturl");
            this.Property(t => t.Msapplication_tilecolor).HasColumnName("Msapplication-tilecolor");
            this.Property(t => t.Msapplication_task).HasColumnName("Msapplication-task");
            this.Property(t => t.Msapplication_task_separator).HasColumnName("Msapplication-task-separator");
            this.Property(t => t.Msapplication_tooltip).HasColumnName("Msapplication-tooltip");
            this.Property(t => t.Msapplication_tileimage).HasColumnName("Msapplication-tileimage");
            this.Property(t => t.Msapplication_window).HasColumnName("Msapplication-window");
            this.Property(t => t.MSThemeCompatible).HasColumnName("MSThemeCompatible");
            this.Property(t => t.MSSmartTagsPreventParsing).HasColumnName("MSSmartTagsPreventParsing");
            this.Property(t => t.Revisit_after).HasColumnName("Revisit-after");
            this.Property(t => t.Robots).HasColumnName("Robots");
            this.Property(t => t.Viewport).HasColumnName("Viewport");
        }
    }
}
